<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>行天下 看世界</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <css file="__PUBLIC__/css/base.css"/>
        <js file="__PUBLIC__/js/jquery-1.7.2.min.js">
        <js file="__PUBLIC__/js/news.js">
    </head>
    <body>
        <!--现在的位置-->
            <div class="position">
                <span class="word">您现在的位置： ->  </span>
                <a href="__APP__/news/index"  class="new_pos">内容管理</a>
                <span class="word"> -> 添加文章 </span>
            </div>
        <!--文章正文-->
        	<div class="cons">
        		<form method="post" action="__CONTROL__/add">
        			<table class="table1">
        			<!--标题-->
        			<tr>
        				<td style="width:70px;text-align:right;color:#555;">标题:</td>
        				<th style="text-align:left;"><input type="text" name="title" style="width:360px;"/></th>
        			</tr>
        			<!--发表栏目-->
        			<empty value="$_GET.catid">
                        <tr>
                            <th style="width:70px;text-align:right;color:#555;">发表栏目：</th>
                            <td style="text-align:left;">
                            	<select name="catid">
                                	<option value=""> ==选择栏目== </option>
                                <list from="$category" name="$v">
                                	<option value="{$v.catid}">{$v.html}└─{$v.cname}</option>
                                </list>
                                </select></td>
                        </tr>
                       	<noempty>
                            <input type="hidden" name="catid" value="{$hd.get.catid}"/> 
                    </empty>
                    <!--来源-->
                    <tr>
                    	<td style="width:70px;text-align:right;color:#555;">来源:</td>
        				<th style="text-align:left;">
        					<input type="text" name="text" class="text" value="" style="width:170px;"/>
        					<select style="width:180px;" class="resource">
        						<option>===请选择===</option>
        						<list from="$res" name="$v">
        							<option> {$v.sname}->{$v.url}</option>
        						</list>
        					</select>
        				</th>
                    </tr>
                    <!--缩略图-->
                    <tr>
                        <th style="width:70px;text-align:right;color:#555;">缩略图：</th>
                        <td style="text-align:left;">
                        	<upload name="thumb" limit="11" imagesize="200,200" thumb_type="6" />
                        </td>
                    </tr>
        			<!--关键字-->
        			<tr>
        				<td style="width:70px;text-align:right;color:#555;">关键字:</td>
        				<th style="text-align:left;"><input type="text" name="keywords" style="width:360px;"/></th>
        			</tr>
        			<!--描述-->
        			<tr>
        				<td style="width:70px;text-align:right;color:#555;">描述:</td>
        				<th style="text-align:left;">
        					<textarea style="width:70%;" name="description">
        					</textarea>
        				</th>
        			</tr>
        			<!--正文-->
        			<tr>
        				<td style="width:70px;text-align:right;color:#555;">正文:</td>
        				<th style="text-align:left;">
        					<editor name="news_data[body]" type="1" style="1" max="500">
        				</th>
        			</tr>
        			<!--点击次数-->
        			<tr>
        				<td style="width:70px;text-align:right;color:#555;">点击次数:</td>
        				<th style="text-align:left;">
        					<input type="text" name='click' value="100" style="color:#666;">
        				</th>
        			</tr>
        			<tr>
        				<td  style="width:70px;text-align:right;color:#555;">
        					<input type="submit" name="submit" value="添加文章">
        				</td>
        				<th></th>
        			</tr>
        			</table>
        		</form>
        	</div>
    </body>
</html>